<?php

namespace app\api\validate;


class ActicleTypeValidate extends BaseValidate
{
    protected $rule = [
        'category_id' => 'require|isNotEmpty|isPositiveInteger',//标题
        'title' => 'require|isNotEmpty|chsDash', //文章内容
    ];

    protected $message = [
        'category_id.require' => "文章类型不能为空",
        'category_id.isPositiveInteger' => "文章类型id有误",
        'title.require' => "二级标题不能为空",
        'title.chsDash' => "二级标题输入格式有误",
    ];
}
